from django.db import models

# Create your models here.
class Clazz(models.Model):
    class_name = models.CharField(max_length=100, unique=True, verbose_name='班级名称')
    class_room = models.CharField(max_length=100, verbose_name='教室名称')
    class_state = models.IntegerField(verbose_name='班级状态', default=1)
    student_number = models.IntegerField(verbose_name='学生人数')
    headteacher = models.CharField(verbose_name='班主任', max_length=100)
    class_start = models.DateField(verbose_name='开班时间')

    class Meta:
        db_table = 'clazz'



